home *** CD-ROM | disk | FTP | other *** search
/ La Bible Des... Jeux / La Bible des... Jeux.iso / Les Sharewares / Educatifs / Spooky Pictures™ / SPPlugIns / SPPlugIns / stack_-1.xml < prev    next >
Encoding:
Extensible Markup Language  |  1995-10-08  |  6.6 KB  |  20 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>1</cardCount>
  7.     <cardID>3071</cardID>
  8.     <listID>2073</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>128</width>
  14.         <height>128</height>
  15.     </cardSize>
  16.     <script>on startUpaddColor installaddColor colorRect, cd, the rect of this card, "65535, 25000,0",1set the userLevel to 5end startUpon openStackglobal colorSet, audioInUseaddColor depthif the result is not in "8,16,24,32" then addColor installaddColor colorRect, cd, the rect of this card, "65535, 25000,0",1GET THE STACKSINUSEPUT ("AUDIO HELP" IS IN IT) INTO AUDIOINUSEif audioinuse is true then stop using stack "Audio Help"setUpMenushideTheWindowscolorSetUppass openStackend openStackon openCardset the icon of cd btn 1 to 0if there is a menu "Spooky Picture!" then set the enabled of menu "Spooky Picture!" to falseaddColor colorRect, cd, (the rect  of card window), "65535, 25000,0",1addcolor colorButton, cd, (id of cd btn id 1 of cd 1),"65535, 25000,0",3addColor colorPict, cd,(the short name of cd btn id 1 of cd 1),the rect of cd btn id 1, "t"-- pass openCardend openCardon closeCard--lock screenpass closeCardend closeCardon suspendStackreset paintloseMenuchoose browse toolend suspendStackon CloseStackglobal audioInUseAddColor removeloseMenuif "SPPlugIns" is in the stacksInUse then stop using stack "SPPlugIns"if audioInUse is true then start using stack "Audio Help"pass closeStackend closeStackon loseMenuif there is a menu "Spooky Picture!" thendelete menu "Spooky Picture!"reset menubarend ifend loseMenuon setUpMenusif there is a menu "Spooky Picture!" thenset the enabled of menu "Spooky Picture!" to trueexit setUpMenusend ifif there is not a menu "Spooky Picture!" then create menu "Spooky Picture!"put "Show Palette,Color Screen,Start Over,Save Picture,Help!" into menu "Spooky Picture!"-- set the commandChar of menuItem "Show Palette" of menu "Spooky Picture!" to "K"set the menuMessage of menuItem "Show Palette" of menu "Spooky Picture!"┬¼to "ShowPalette"-- set the commandChar of menuItem "Color Screen" of menu "Spooky Picture!" to "H"set the menuMessage of menuItem "Color Screen" of menu "Spooky Picture!"┬¼to "ColorGround"-- set the commandChar of menuItem "Start Over" of menu "Spooky Picture!" to "P"set the menuMessage of menuItem "Start Over" of menu "Spooky Picture!"┬¼to "EraseItAll"-- set the commandChar of menuItem "Save Picture" of menu "Spooky Picture!" to "L"set the menuMessage of menuItem "Save Picture" of menu "Spooky Picture!"┬¼to "SaveArt"set the menuMessage of menuItem "Help!" of menu "Spooky Picture!"┬¼to "HowTo"end setUpMenuson SaveArtset the cursor to watchif the version ΓëÑ 2.3 then stop speechhideTheWindowshide msgput (the visible of menubar) into SeeMenuif SeeMenu then set the visible of menubar to falseput the rect of cd window into windowSize--add (the height of menubar) to item 2 of windowSizeif there is a window "art fun" then hide window "art fun"do "ScreenShot"&quote&"Global"&quote&comma&windowSizeput the result into theResultif theResult contains "err" thenanswer theResultexit SaveArtend ifask file "Save Picture as:" --with "Spooky Picture!"if it is empty thenif there is a window "art fun" then show window "art fun"set the visible of menubar to seeMenuexit SaveArtend ifput it into theFileNameClipboardToPict theFileName, "c=ttxt"if theResult contains "err" thenanswer theResultexit SaveArtend ifif there is a window "art fun" then show window "art fun"set the visible of menubar to seeMenuend SaveArton mouseUpanswer "This stack provides functionality to the stack"&&quote&"Spooky PicturesΓäó."&quote&&┬¼"DoubleClick on "&quote&"Spooky PicturesΓäó"&quote&" on the desktop to play."with "Quit"end mouseUpon colorGroundglobal colorSeteraseItAllif colorSet is empty thenaddColor colorRect, cd, the rect of this card, "25000, 0,35000"elseaddColor colorRect, cd, the rect of this card, line (random(number of lines in colorSet)) of colorSetend ifend colorGroundon EraseItAllglobal pasteListlock screenchoose  select tooldoMenu "Select All"doMenu "Clear Picture"checkForTooladdColor colorCard, rakeHorizOpen, 30-- select all and erase if card artif the version ΓëÑ 2.3 then stop speechput empty into pasteListend EraseItAllon showPaletteif there is a window "art fun" thenshow window "art fun"elsepalette "art fun"set the loc of window "art Fun" to 40, 40end ifend showPaletteon colorSetUpglobal colorSetput empty into colorSet--put "65535,0,15535"& return after colorSet -- lipstick pinkput "65535,25000,0"& return after colorSetput "25535,0,0"& return after colorSet -- dk redput "0,0,15535"& return after colorSet -- dk blueput "25000, 0,35000"& return after colorSet --purpleput "0,0,0"& return after colorSet -- blackput "0,15535,25535"& return after colorSet -- dk blueput "35535,25000,0"& return after colorSet --mustardput "65535,25000,0"& return after colorSet --orangeend colorSetUpon checkForToolif tool() Γëá "browse tool" then choose browse toolreset paintend checkForToolon checkForSpeechif the version ΓëÑ 2.3 thenif voices() is empty thenanswer quote&"Spooky PicturesΓäó"&quote&" can make sounds too!! Get mom or dad or your teacher to install the Speech Manager"&&┬¼"Extension!" with "Try It!"--exit to HyperCardend ifelseexit checkForSpeechend ifend checkForSpeechon howToanswer "Click on any button on the palette,"&return&"and then click on"&&┬¼"the screen to make a Spooky Picture."&return&"Click on the eraser to"&&┬¼"start over."&return&"Click on"&&quote&"Save"&quote&&"to save your picture."&&┬¼"You can use the HyperCard paint tools too!" with "Wow!!"end howToon hideTheWindowsput the windows into varrepeat with i = 1 to the number of lines in varif line i of var is in "SPPlugIns,Spooky PicturesΓäó2.3,Spooky PicturesΓäó2.2" thennext repeatelseif line i of var is in "message,tools,scroll, fatBits, patterns"&┬¼"variable watcher, message watcher" then hide window (line i of var)end ifend repeatend hideTheWindowson colorMeend colorMeon AC_Transitionsend AC_Transitions</script>
  17.     <background id="2792" file="background_2792.xml" name="" />
  18.     <card id="3071" file="card_3071.xml" marked="false" name="" owner="2792" />
  19. </stack>
  20.